package com.aspire.boc.mms.wmf.util;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class Test {
	
	    	private <T> List<T> builderList(List<Map<String, Object>> result, Class<T> clazz) {
	    			if (result == null || result.size() < 1)
	    				return null;
	    			try {
	    				List<T> list = new ArrayList<T>();
	    				T o = null;
	    				for (Map<String, Object> map : result) {
	    					o=clazz.newInstance();
	    					//BeanUtils.populate(o, map);
	    					//MyBeanUtils.convertToBeanByMap(o, map);
	    					list.add(o);
	    				}
	    				return list;
	    			} catch (Exception ex) {
	    				throw new RuntimeException(ex.getMessage());
	    			}
	    		}
	    	public void mmm() {
	    		
	    		Test o = null;

	    		
	    		List<Map<String, Object>>  result= new ArrayList<Map<String, Object>>();
	    		
	    		builderList(result, o.getClass());
			}
	    	public static void main(String[] args) {
	    		BigDecimal b = new BigDecimal(1);
	    		System.out.println(b.toString());
	    	}
}
